package com.jbm.onehome.iface;

import com.jbm.core.iface.IAcross;

import javax.persistence.Transient;

/**
 * Created by root on 16-1-19.
 */
public class IGeoinfo extends IAcross
{
	public IGeoinfo(IAcross ia)
	{
		super(ia);
	}

    public IGeoinfo ()
    {
        super();
        back = false;
        method = "";
        errorinfo = "";

        start = 0;
        count = 0;
    }

    public IGeoinfo ( boolean back, String errorinfo )
    {
        this();

        this.back = back;
        this.errorinfo = errorinfo;
    }

    public IGeoinfo ( String method, int gi_id, int prev_id, String prev_code, String type )
    {
        this();

        this.method = method;
        this.gi_id = gi_id;
        this.prev_id = prev_id;
        this.type = type;
        this.prev_code = prev_code;
    }
    public IGeoinfo ( String method, int gi_id, int prev_id, String prev_code, String type,String gi_type )
    {
        this();

        this.method = method;
        this.gi_id = gi_id;
        this.prev_id = prev_id;
        this.type = type;
        this.prev_code = prev_code;
        this.gi_type=gi_type;
    }
    private static final long serialVersionUID = 1700001L;



    public int gi_id;
    public int prev_id;
    public String gi_code;
    public String gi_name;
    public String gi_fullname;
    public int longitude;
    public int latitude;
    public String type;
    public String status;
    public String create_date;
    public int create_id;
    public String expire_date;
    public String close_date;
    public int close_id;

    public String prev_code;
    public String gi_type;

    @Transient
    public boolean back;
    @Transient
    public String method;
    @Transient
    public String errorinfo;
    @Transient
    public int count;
    @Transient
    public int start=0;
    @Transient
    public int pagesize=0;
    @Transient
    public Integer tableid;
    @Override
    public String toString() {
        return gi_name;
    }
}
